package edu.gatech.volt2.drdoommgt.presenter;

import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.util.Calendar;

import edu.gatech.volt2.drdoommgt.domain.*;
import edu.gatech.volt2.drdoommgt.gui.*;

public class PatientInvoicePresenter implements ActionListener{

	
	private Patient myPatient;
	private String date;
	private Doctor doctor;
	private TreatmentRecord services;
	private IPatientView myView;
	
	public PatientInvoicePresenter (Patient patient, IPatientView view) {
		myPatient = patient;
		myView = view;
		myView.addListener(this);
		myView.showSelf();
	}
	
	public void actionPerformed(ActionEvent action) {
		System.out.println(action.getSource());
		System.out.println(myView.getExitButton());
		if ( action.getSource() == myView.getExitButton()){
			System.out.println("Exiting..");
			System.exit(0);
		}
		
	}
}
